<?php



class Modelo
{	
	static $host;
	static $user;
	static $password;
	static $database;
	
	static function conectaBD() {
		$connection		= mysql_connect(Modelo::$host, Modelo::$user, Modelo::$password);
		mysql_select_db(Modelo::$database, $connection);
		return $connection;
	}
	
	static function query($query, $connection) {
		return mysql_query($query, $connection);
	}
	
	static function desconectaBD ($connection) {
		return mysql_close($connection);
	}
}

?>